<template>
    <footer class="footer-box" :class="position?`${ position}` : ''">
        <slot></slot>
    </footer>
</template>

<script lang="ts" setup>
/**
 * footer组件
 * 定义了margin-top，且能够修改内容的定位
 * @prop position [left, center, right(default)] 位置
 */
defineProps({
    position: {
        type: String,
        default: '',
    },
})
</script>

<style lang="scss" scoped>
.footer-box {
    padding-top: $gutter;
    text-align: right;
    &.center {
        text-align: center;
    }
    &.left {
        text-align: left;
    }
}
</style>